package com.cvte.shop.entity;


import javax.persistence.*;
import com.cvte.csb.validator.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;

/**
 * ${table.comment}
 *
 * @author 戴书博
 * @since 2020-07-27
 */
@Table(name = "SHOP_USER_ALL")
@ApiModel(description = "${table.comment}")
@Data
@EqualsAndHashCode
public class ShopUserAll extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @Id
    @GeneratedValue(generator = "JDBC")
    @Column(name = "SHOP_USER_ALL_PK")
    @ApiModelProperty(value="${field.comment}",required = false)
    private String shopUserAllPk;

    /**
     * 昵称
     */
    @Column(name = "NIKENAME")
    @ApiModelProperty(value = "${field.comment}")
    private String nikename;

    /**
     * 账号
     */
    @Column(name = "USERNAME")
    @ApiModelProperty(value = "${field.comment}")
    private String username;

    /**
     * 密码
     */
    @Column(name = "PASSWORD")
    @ApiModelProperty(value = "${field.comment}")
    private String password;

    /**
     * 级别：1001青铜 ,1002黑铁 ,1003黄金 ,1004白金 ,1005砖石 ,1006超凡大师 ,1007最强王者
     */
    @Column(name = "GRADE")
    @ApiModelProperty(value = "${field.comment}")
    private Integer grade;

    /**
     * 拥有的金钱数
     */
    @Column(name = "ASSETS")
    @ApiModelProperty(value = "${field.comment}")
    private Integer assets;

    /**
     * 账户状态：1：正常、2：冻结、3：注销
     */
    @Column(name = "ACCOUNT_STATUS")
    @ApiModelProperty(value = "${field.comment}")
    private Integer accountStatus;

    /**
     * 注册时间
     */
    @Column(name = "REGISTERY_TIME")
    @ApiModelProperty(value = "${field.comment}")
    private Date registeryTime;

    /**
     * 账户状态更新时间
     */
    @Column(name = "UPDATE_TIME")
    @ApiModelProperty(value = "${field.comment}")
    private Date updateTime;

}
